<%@ page language="java" pageEncoding="UTF-8"%>  
<%  
String path = request.getContextPath();  
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";  
%>  
<!DOCTYPE html>  
<html>  
<head>  
<base href="<%=basePath%>">  
</head>  
<body>  
  	<h1>登陆界面</h1>
  	<form id = "login" method = "post" action = "<%=path%>/login">
  		<p> 用户名: <input type= "text" name = "username">
  			
  		<p> 密码:<input type = "password" name="password">
  		<p> <input type = "submit" value= "登陆">
  	</form>
</body>  
</html>  